package com.star.sso.contract.enums;

import com.star.common.core.contract.enums.IEnum;
import com.star.common.kit.enums.EnumValueResolver;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 菜单类型枚举
 * 1：目录
 * 2：菜单
 * 3：按钮
 *
 * 如果需要根据code获取desc，请使用
 * @see com.star.common.kit.enums.EnumUtils#getByCode(java.lang.Class, java.lang.Object)
 *
 * @author zhouhengzhe
 */
@Getter
@AllArgsConstructor
public enum MenuTypeEnum implements IEnum<Integer>, EnumValueResolver<MenuTypeEnum, Integer> {
    CATALOG(1, "目录"),
    MENU(2, "菜单"),
    BUTTON(3, "按钮");
    private final Integer code;

    private final String desc;
}
